import imageIdToURI from "@cornerstonejs/core/src/utilities/imageIdToURI";

const state: Record<string, any> = {};

function add(imageId, payload) {
    const imageURI = imageIdToURI(imageId);
    state[imageURI] = payload
}

function get(type, imageId) {
    if (type === 'imgInfoModule') {
        const imageURI = imageIdToURI(imageId);
        return state[imageURI]
    }
}

export default {add, get};